<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<body>
<div th:fragment="tablibs">
    <link rel="stylesheet" th:href="@{'/webjars/bootstrap/3.3.5/css/bootstrap.min.css'}"/>
    <link rel="stylesheet" th:href="@{'/css/nav.css'}"/>
    <script th:src="@{/js/common/jquery-3.1.1.min.js}"></script>
    <script th:src="@{'/webjars/bootstrap/3.3.5/js/bootstrap.min.js'}"></script>
    <script th:src="@{'/js/modal.js'}"></script>
    <script type="text/javascript" th:src="@{/js/commons/msg.js}"></script>
    <script type="text/javascript" th:src="@{/js/layer/layer.js}"></script>
    <script type="text/javascript" th:inline="javascript">
        var ctx = [[${#httpServletRequest.getContextPath()}]];
        $(function () {
            $.ajaxSetup({
                complete: function (XMLHttpRequest) {
                    if (XMLHttpRequest.responseText == 8888) {
                        msg.error("由于你长时间没有操作,导致Session失效!请重新登录!");
                        setTimeout(function () {
                            top.location.href = ctx + "/login"
                        }, 1200)
                        sessionStorage.setItem("itemvalue", new Date().getTime());
                    }
                }
            })
        })
    </script>
</div>
<div th:fragment="layui_all">
    <link rel="stylesheet" th:href="@{/js/layui/css/layui.css}" media="all"/>
    <script type="text/javascript" th:src="@{/js/layui/layui.all.js}"></script>
    <script type="text/javascript" th:src="@{/js/common/jquery-3.1.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/common/msg.js}"></script>
    <script type="text/javascript" th:src="@{/js/common/jquery.form.min.js}"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript" th:inline="javascript">
        var ctx = [[${#httpServletRequest.getContextPath()}]];
        $(function () {
            $.ajaxSetup({
                complete: function (XMLHttpRequest) {
                    if (XMLHttpRequest.responseText == 8888) {
                        msg.error("由于你长时间没有操作,导致Session失效!请重新登录!");
                        setTimeout(function () {
                            top.location.href = ctx + "/login"
                        }, 1200)
                        sessionStorage.setItem("itemvalue", new Date().getTime());
                    }
                }
            })
        })
    </script>
</div>
<div th:fragment="layui">
    <link rel="stylesheet" th:href="@{/js/layui/css/layui.css}" media="all"/>
    <link rel="stylesheet" th:href="@{/js/layui/font/font-awesome.min.css}">
    <script type="text/javascript" th:src="@{/js/layui/layui.js}"></script>
    <script type="text/javascript" th:src="@{/js/common/jquery-3.1.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/common/msg.js}"></script>
    <script type="text/javascript" th:src="@{/js/common/jquery.form.min.js}"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript" th:inline="javascript">
        var ctx = [[${#httpServletRequest.getContextPath()}]];
        $(function () {
            $.ajaxSetup({
                complete: function (XMLHttpRequest) {
                    if (XMLHttpRequest.responseText == 8888) {
                        msg.error("由于你长时间没有操作,导致Session失效!请重新登录!");
                        setTimeout(function () {
                            top.location.href = ctx + "/login"
                        }, 1200)
                        sessionStorage.setItem("itemvalue", new Date().getTime());
                    }
                }
            })
        })
    </script>
</div>
<div th:fragment="login">
    <link rel="stylesheet" th:href="@{/js/layui/css/layui.css}" media="all"/>
    <link rel="stylesheet" type="text/css" media="screen" th:href="@{/css/style.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/reset.css}"/>
    <script type="text/javascript" th:src="@{/js/layui/layui.all.js}"></script>
    <script th:src="@{/js/common/jquery-3.1.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/layer/layer.js}"></script>
    <script type="text/javascript" th:src="@{/js/common/msg.js}"></script>
    <script type="text/javascript" th:src="@{/js/common/jsrsasign-all-min.js}"></script>
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript" th:inline="javascript">
        var ctx = [[${#httpServletRequest.getContextPath()}]];
        $(function () {
            $.ajaxSetup({
                complete: function (XMLHttpRequest) {
                    if (XMLHttpRequest.responseText == 8888) {
                        msg.error("由于你长时间没有操作,导致Session失效!请重新登录!");
                        setTimeout(function () {
                            top.location.href = ctx + "/login"
                        }, 1200)
                        sessionStorage.setItem("itemvalue", new Date().getTime());
                    }
                }
            })
        })
    </script>
</div>
</body>
</html>